﻿
// ClientView.h: CClientView 类的接口
//

#pragma once


class CClientView : public CView
{
protected: // 仅从序列化创建
    CClientView() noexcept;
    DECLARE_DYNCREATE(CClientView)

    // 特性
public:
    CClientDoc* GetDocument() const;

    // 操作
public:

    // 重写
public:
    virtual void OnDraw(CDC* pDC);  // 重写以绘制该视图
    virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
    virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
    virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
    virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

    // 实现
public:
    virtual ~CClientView();
#ifdef _DEBUG
    virtual void AssertValid() const;
    virtual void Dump(CDumpContext& dc) const;
#endif

protected:

    // 生成的消息映射函数
protected:
    DECLARE_MESSAGE_MAP()
public:
    afx_msg void OnInsertObject();

protected:
    IOleObject* m_lpIOleObject;
    IStorage* m_lpIStorage;
    IViewObject* m_lpIViewObject;
    IAdviseSink* m_lpIAdviseSink;

protected:
    virtual void PostNcDestroy();
};

#ifndef _DEBUG  // ClientView.cpp 中的调试版本
inline CClientDoc* CClientView::GetDocument() const
   { return reinterpret_cast<CClientDoc*>(m_pDocument); }
#endif

